package com.mryin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mryin.pojo.UserRole;
import com.mryin.mapper.UserRoleMapper;
import com.mryin.service.UserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author MRYIN
 * @since 2021-02-25
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {

    @Autowired
    private UserRoleMapper userRoleMapper ;

    @Override
    public List<String> queryRolesByUserId(Integer id) {
        return userRoleMapper.queryRolesByUserId(id);
    }
}
